Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
0.00% |
0 / 484 |
|
0.00% |
0 / 406 |
|
0.00% |
0 / 1909 |
|
0.00% |
0 / 24 |
CRAP | |
0.00% |
0 / 1 |
| FormBuilderVocabulary | |
0.00% |
0 / 482 |
|
0.00% |
0 / 406 |
|
0.00% |
0 / 1909 |
|
0.00% |
0 / 24 |
52670 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setForm | |
0.00% |
0 / 2 |
|
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |||
| getForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getStyles | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| smartyFBVFormArea | |
0.00% |
0 / 10 |
|
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |||
| smartyFBVFormSection | |
0.00% |
0 / 34 |
|
0.00% |
0 / 29 |
|
0.00% |
0 / 182 |
|
0.00% |
0 / 1 |
156 | |||
| smartyFBVFormButtons | |
0.00% |
0 / 13 |
|
0.00% |
0 / 7 |
|
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
12 | |||
| smartyFBVElement | |
0.00% |
0 / 66 |
|
0.00% |
0 / 36 |
|
0.00% |
0 / 20 |
|
0.00% |
0 / 1 |
462 | |||
| _smartyFBVButton | |
0.00% |
0 / 14 |
|
0.00% |
0 / 13 |
|
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
72 | |||
| _smartyFBVAutocompleteInput | |
0.00% |
0 / 13 |
|
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
12 | |||
| _smartyFBVTextInput | |
0.00% |
0 / 52 |
|
0.00% |
0 / 49 |
|
0.00% |
0 / 1280 |
|
0.00% |
0 / 1 |
702 | |||
| _smartyFBVTextArea | |
0.00% |
0 / 52 |
|
0.00% |
0 / 44 |
|
0.00% |
0 / 50 |
|
0.00% |
0 / 1 |
756 | |||
| _smartyFBVHiddenInput | |
0.00% |
0 / 14 |
|
0.00% |
0 / 14 |
|
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
72 | |||
| _smartyFBVSelect | |
0.00% |
0 / 34 |
|
0.00% |
0 / 25 |
|
0.00% |
0 / 30 |
|
0.00% |
0 / 1 |
272 | |||
| _smartyFBVCheckboxGroup | |
0.00% |
0 / 22 |
|
0.00% |
0 / 27 |
|
0.00% |
0 / 56 |
|
0.00% |
0 / 1 |
272 | |||
| _smartyFBVCheckbox | |
0.00% |
0 / 16 |
|
0.00% |
0 / 17 |
|
0.00% |
0 / 18 |
|
0.00% |
0 / 1 |
110 | |||
| _smartyFBVRadioButton | |
0.00% |
0 / 19 |
|
0.00% |
0 / 19 |
|
0.00% |
0 / 22 |
|
0.00% |
0 / 1 |
156 | |||
| _smartyFBVFileInput | |
0.00% |
0 / 14 |
|
0.00% |
0 / 14 |
|
0.00% |
0 / 9 |
|
0.00% |
0 / 1 |
72 | |||
| _smartyFBVKeywordInput | |
0.00% |
0 / 27 |
|
0.00% |
0 / 20 |
|
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
132 | |||
| _smartyFBVInterestsInput | |
0.00% |
0 / 11 |
|
0.00% |
0 / 15 |
|
0.00% |
0 / 14 |
|
0.00% |
0 / 1 |
56 | |||
| _smartyFBVSubLabel | |
0.00% |
0 / 21 |
|
0.00% |
0 / 18 |
|
0.00% |
0 / 36 |
|
0.00% |
0 / 1 |
110 | |||
| _addClientSideValidation | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
12 | |||
| _getLayoutInfo | |
0.00% |
0 / 17 |
|
0.00% |
0 / 20 |
|
0.00% |
0 / 18 |
|
0.00% |
0 / 1 |
90 | |||
| smartyFieldLabel | |
0.00% |
0 / 19 |
|
0.00% |
0 / 22 |
|
0.00% |
0 / 130 |
|
0.00% |
0 / 1 |
156 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @defgroup FormBuilderVocabulary Form Builder Vocabulary |
| 5 | * Implements a form construction toolkit for generating standard form markup. |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * @file classes/form/FormBuilderVocabulary.php |
| 10 | * |
| 11 | * Copyright (c) 2014-2021 Simon Fraser University |
| 12 | * Copyright (c) 2000-2021 John Willinsky |
| 13 | * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. |
| 14 | * |
| 15 | * @class FormBuilderVocabulary |
| 16 | * |
| 17 | * @ingroup core |
| 18 | * |
| 19 | * @brief Class defining Form Builder Vocabulary methods. |
| 20 | * |
| 21 | * Form Builder Vocabulary - FBV |
| 22 | * Generates form markup in templates using {fbvX} calls. |
| 23 | * Group form areas with the {fbvFormArea} call. These sections mark off groups of semantically |
| 24 | * related form sections. |
| 25 | * Parameters: |
| 26 | * id: The form area ID |
| 27 | * class (optional): Any additional classes |
| 28 | * title (optional): Title of the area |
| 29 | * Group form sections with the {fbvFormSection} call. These sections organize directly related form elements. |
| 30 | * Parameters: |
| 31 | * id: The section ID |
| 32 | * class (optional): Any additional classes |
| 33 | * title (optional): Title of the area |
| 34 | * Form submit/cancel buttons should be created with {fbvFormButtons} |
| 35 | * Parameters: |
| 36 | * submitText (optional): Text to display for the submit link (default is 'Ok') |
| 37 | * submitDisabled (optional): Whether the submit button should be disabled |
| 38 | * confirmSubmit (optional): Text to display in a confirmation dialog that must be okayed |
| 39 | * before the form is submitted |
| 40 | * cancelText (optional): Text to display for the cancel link (default is 'Cancel') |
| 41 | * hideCancel (optional): Whether the submit button should be disabled |
| 42 | * cancelAction (optional): A LinkAction object to execute when cancel is clicked |
| 43 | * cancelUrl (optional): URL to redirect to when cancel is clicked |
| 44 | * Form elements are created with {fbvElement type="type"} plus any additional parameters. |
| 45 | * Each specific element type may have other additional attributes (see their method comments) |
| 46 | * Parameters: |
| 47 | * type: The form element type (one of the cases in the smartyFBVElement method) |
| 48 | * id: The element ID |
| 49 | * class (optional): Any additional classes |
| 50 | * required (optional) whether the section should have a 'required' label (adds span.required) |
| 51 | * for (optional): What the section's label is for |
| 52 | * inline: Adds .inline to the element's parent container and causes it to display inline with other elements |
| 53 | * size: One of $fbvStyles.size.SMALL (adds .quarter to element's parent container) or $fbvStyles.size.MEDIUM (adds |
| 54 | * .half to element's parentcontainer) |
| 55 | * required: Adds an asterisk and a .required class to the element's label |
| 56 | */ |
| 57 | |
| 58 | namespace PKP\form; |
| 59 | |
| 60 | use Exception; |
| 61 | |
| 62 | class FormBuilderVocabulary |
| 63 | { |
| 64 | /** @var Form associated with this object, if any. Will inform smarty which forms to label as required */ |
| 65 | public $_form; |
| 66 | |
| 67 | /** @var array Styles organized by parameter name */ |
| 68 | public $_fbvStyles; |
| 69 | |
| 70 | /** |
| 71 | * Constructor. |
| 72 | * |
| 73 | * @param object $form Form associated with this object |
| 74 | */ |
| 75 | public function __construct($form = null) |
| 76 | { |
| 77 | $this->_fbvStyles = [ |
| 78 | 'size' => ['SMALL' => 'SMALL', 'MEDIUM' => 'MEDIUM', 'LARGE' => 'LARGE'], |
| 79 | 'height' => ['SHORT' => 'SHORT', 'MEDIUM' => 'MEDIUM', 'TALL' => 'TALL'] |
| 80 | ]; |
| 81 | } |
| 82 | |
| 83 | |
| 84 | // |
| 85 | // Setters and Getters |
| 86 | // |
| 87 | /** |
| 88 | * Set the form |
| 89 | * |
| 90 | * @param object $form |
| 91 | */ |
| 92 | public function setForm($form) |
| 93 | { |
| 94 | if ($form) { |
| 95 | assert($form instanceof \PKP\form\Form); |
| 96 | } |
| 97 | $this->_form = $form; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Get the form |
| 102 | * |
| 103 | * @return Form |
| 104 | */ |
| 105 | public function getForm() |
| 106 | { |
| 107 | return $this->_form; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Get the form style constants |
| 112 | * |
| 113 | * @return array |
| 114 | */ |
| 115 | public function getStyles() |
| 116 | { |
| 117 | return $this->_fbvStyles; |
| 118 | } |
| 119 | |
| 120 | |
| 121 | // |
| 122 | // Public Methods |
| 123 | // |
| 124 | /** |
| 125 | * A form area that contains form sections. |
| 126 | * |
| 127 | * @param array $params |
| 128 | * @param string $content |
| 129 | * @param object $smarty |
| 130 | * @param bool $repeat |
| 131 | */ |
| 132 | public function smartyFBVFormArea($params, $content, $smarty, &$repeat) |
| 133 | { |
| 134 | assert(isset($params['id'])); |
| 135 | if (!$repeat) { |
| 136 | $smarty->assign([ |
| 137 | 'FBV_class' => $params['class'] ?? null, |
| 138 | 'FBV_id' => $params['id'], |
| 139 | 'FBV_content' => $content ?? null, |
| 140 | 'FBV_translate' => $params['translate'] ?? true, |
| 141 | 'FBV_title' => $params['title'] ?? null, |
| 142 | ]); |
| 143 | return $smarty->fetch('form/formArea.tpl'); |
| 144 | } |
| 145 | return ''; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * A form section that contains controls in a variety of layout possibilities. |
| 150 | * |
| 151 | * @param array $params |
| 152 | * @param string $content |
| 153 | * @param object $smarty |
| 154 | * @param bool $repeat |
| 155 | */ |
| 156 | public function smartyFBVFormSection($params, $content, $smarty, &$repeat) |
| 157 | { |
| 158 | $form = $this->getForm(); |
| 159 | if (!$repeat) { |
| 160 | $smarty->assign('FBV_required', $params['required'] ?? false); |
| 161 | $smarty->assign('FBV_id', $params['id'] ?? null); |
| 162 | |
| 163 | // Since $content will contain input fields that may have unique Ids appended, the 'for' |
| 164 | // attribute on the form section's label needs to include this. Look for the assigned |
| 165 | // form element within $content and extract the full id. Default to the passed in param |
| 166 | // otherwise. |
| 167 | if (!empty($params['for'])) { |
| 168 | if (preg_match('/id="(' . preg_quote($params['for'], '/') . '\-[^"]+)"/', $content, $matches)) { |
| 169 | $smarty->assign('FBV_labelFor', $matches[1]); |
| 170 | } else { |
| 171 | $smarty->assign('FBV_labelFor', $params['for']); |
| 172 | } |
| 173 | } else { |
| 174 | $smarty->assign('FBV_labelFor', null); |
| 175 | } |
| 176 | $smarty->assign([ |
| 177 | 'FBV_title' => $params['title'] ?? null, |
| 178 | 'FBV_label' => $params['label'] ?? null, |
| 179 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 180 | 'FBV_description' => $params['description'] ?? null, |
| 181 | 'FBV_content' => $content ?? null, |
| 182 | 'FBV_translate' => $params['translate'] ?? true, |
| 183 | ]); |
| 184 | |
| 185 | $class = $params['class'] ?? null; |
| 186 | |
| 187 | // Check if we are using the Form class and if there are any errors |
| 188 | if (isset($form) && !empty($form->formSectionErrors)) { |
| 189 | $class = $class . (empty($class) ? '' : ' ') . 'error'; |
| 190 | $smarty->assign('FBV_sectionErrors', $form->formSectionErrors); |
| 191 | $form->formSectionErrors = []; |
| 192 | } else { |
| 193 | $smarty->assign('FBV_sectionErrors', null); |
| 194 | } |
| 195 | |
| 196 | // If we are displaying checkboxes or radio options, we'll need to use a |
| 197 | // list to organize our elements -- Otherwise we use divs and spans |
| 198 | if (isset($params['list']) && $params['list'] != false) { |
| 199 | $smarty->assign('FBV_listSection', true); |
| 200 | } else { |
| 201 | // Double check that we don't have lists in the content. |
| 202 | // This is a kludge but the only way to make sure we've |
| 203 | // set the list parameter when we're using lists |
| 204 | if (substr(trim($content), 0, 4) == '<li>') { |
| 205 | throw new Exception('FBV: list attribute not set on form section containing lists'); |
| 206 | } |
| 207 | |
| 208 | $smarty->assign('FBV_listSection', false); |
| 209 | } |
| 210 | |
| 211 | $smarty->assign('FBV_class', $class); |
| 212 | $smarty->assign('FBV_layoutColumns', empty($params['layout']) ? false : true); |
| 213 | |
| 214 | return $smarty->fetch('form/formSection.tpl'); |
| 215 | } else { |
| 216 | if (isset($form)) { |
| 217 | $form->formSectionErrors = []; |
| 218 | } |
| 219 | } |
| 220 | return ''; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Submit and (optional) cancel button for a form. |
| 225 | * |
| 226 | * @param array $params |
| 227 | * @param object $smarty |
| 228 | */ |
| 229 | public function smartyFBVFormButtons($params, $smarty) |
| 230 | { |
| 231 | $smarty->assign([ |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 237 | 'FBV_cancelAction' => $params['cancelAction'] ?? null, |
| 238 | 'FBV_cancelUrl' => $params['cancelUrl'] ?? null, |
| 239 | 'FBV_cancelUrlTarget' => $params['cancelUrlTarget'] ?? '', |
| 240 | 'FBV_translate' => $params['translate'] ?? true, |
| 241 | 'FBV_saveText' => $params['saveText'] ?? null, |
| 242 | ]); |
| 243 | return $smarty->fetch('form/formButtons.tpl'); |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Base form element. |
| 248 | * |
| 249 | * @param array $params |
| 250 | * @param object $smarty |
| 251 | * @param null|mixed $content |
| 252 | */ |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 256 | throw new Exception('FBV: Element type not set'); |
| 257 | } |
| 258 | if (!isset($params['id'])) { |
| 259 | throw new Exception('FBV: Element ID not set'); |
| 260 | } |
| 261 | |
| 262 | // Set up the element template |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 285 | $content = $this->_smartyFBVAutocompleteInput($params, $smarty); |
| 286 | break; |
| 287 | case 'button': |
| 288 | case 'submit': |
| 289 | $content = $this->_smartyFBVButton($params, $smarty); |
| 290 | break; |
| 291 | case 'checkbox': |
| 292 | $content = $this->_smartyFBVCheckbox($params, $smarty); |
| 293 | unset($params['label']); |
| 294 | break; |
| 295 | case 'checkboxgroup': |
| 296 | $content = $this->_smartyFBVCheckboxGroup($params, $smarty); |
| 297 | unset($params['label']); |
| 298 | break; |
| 299 | case 'file': |
| 300 | $content = $this->_smartyFBVFileInput($params, $smarty); |
| 301 | break; |
| 302 | case 'hidden': |
| 303 | $content = $this->_smartyFBVHiddenInput($params, $smarty); |
| 304 | break; |
| 305 | case 'keyword': |
| 306 | $content = $this->_smartyFBVKeywordInput($params, $smarty); |
| 307 | break; |
| 308 | case 'interests': |
| 309 | $content = $this->_smartyFBVInterestsInput($params, $smarty); |
| 310 | break; |
| 311 | case 'radio': |
| 312 | $content = $this->_smartyFBVRadioButton($params, $smarty); |
| 313 | unset($params['label']); |
| 314 | break; |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 318 | case 'text': |
| 319 | case 'url': |
| 320 | $content = $this->_smartyFBVTextInput($params, $smarty); |
| 321 | break; |
| 322 | case 'select': |
| 323 | $content = $this->_smartyFBVSelect($params, $smarty); |
| 324 | break; |
| 325 | case 'textarea': |
| 326 | $content = $this->_smartyFBVTextArea($params, $smarty); |
| 327 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 335 | |
| 336 | // |
| 337 | // Private methods |
| 338 | // |
| 339 | |
| 340 | /** |
| 341 | * Form button. |
| 342 | * parameters: label (or value), disabled (optional), type (optional) |
| 343 | * |
| 344 | * @param array $params |
| 345 | * @param object $smarty |
| 346 | */ |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * Form Autocomplete text input. (actually two inputs, label and value) |
| 374 | * parameters: disabled (optional), name (optional - assigned value of 'id' by default) |
| 375 | * |
| 376 | * @param array $params |
| 377 | * @param object $smarty |
| 378 | */ |
| 379 | public function _smartyFBVAutocompleteInput($params, $smarty) |
| 380 | { |
| 381 | assert(isset($params['autocompleteUrl']) && isset($params['id'])); |
| 382 | |
| 383 | // This id will be used for the hidden input that should be read by the Form. |
| 384 | $autocompleteId = $params['id']; |
| 385 | |
| 386 | // We then override the id parameter to differentiate it from the hidden element |
| 387 | // and make sure that the text input is not read by the Form class. |
| 388 | $params['id'] = $autocompleteId . '_input'; |
| 389 | |
| 390 | // We set this now, so that we unset the param for the text input. |
| 391 | $smarty->assign([ |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 393 | 'FBV_autocompleteValue' => $params['autocompleteValue'] ?? null, |
| 394 | 'FBV_disableSync' => isset($params['disableSync']) ? true : null, |
| 395 | ]); |
| 396 | |
| 397 | unset($params['autocompleteUrl'], $params['autocompleteValue']); |
| 398 | |
| 399 | $smarty->assign([ |
| 400 | 'FBV_textInput' => $this->_smartyFBVTextInput($params, $smarty), |
| 401 | 'FBV_id' => $autocompleteId, |
| 402 | ]); |
| 403 | |
| 404 | return $smarty->fetch('form/autocompleteInput.tpl'); |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * Form text input. |
| 409 | * parameters: disabled (optional), name (optional - assigned value of 'id' by default), multilingual (optional) |
| 410 | * |
| 411 | * @param array $params |
| 412 | * @param object $smarty |
| 413 | */ |
| 414 | public function _smartyFBVTextInput($params, $smarty) |
| 415 | { |
| 416 | $params['name'] = $params['name'] ?? $params['id']; |
| 417 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 418 | $params['uniqId'] = uniqid(); |
| 419 | |
| 420 | $textInputParams = ''; |
| 421 | $smarty->assign([ |
| 422 | 'FBV_isPassword' => isset($params['password']) ? true : false, |
| 423 | 'FBV_isTypeURL' => $params['type'] === 'url' ? true : false, |
| 424 | 'FBV_isTypeSearch' => $params['type'] === 'search' ? true : false, |
| 425 | 'FBV_isTypeEmail' => $params['type'] === 'email' ? true : false, |
| 426 | 'FBV_isTypeTel' => $params['type'] === 'tel' ? true : false, |
| 427 | 'FBV_disabled' => false, |
| 428 | 'FBV_readonly' => false, |
| 429 | 'FBV_multilingual' => false, |
| 430 | 'FBV_name' => null, |
| 431 | 'FBV_value' => null, |
| 432 | 'FBV_label_content' => null, |
| 433 | 'FBV_uniqId' => null, |
| 434 | 'FBV_urlValidationErrorMessage' => null, |
| 435 | ]); |
| 436 | foreach ($params as $key => $value) { |
| 437 | switch ($key) { |
| 438 | case 'label': |
| 439 | $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 440 | break; |
| 441 | case 'type': |
| 442 | case 'size': |
| 443 | case 'inline': |
| 444 | case 'subLabelTranslate': |
| 445 | break; |
| 446 | case 'urlValidationErrorMsg': |
| 447 | if ($params['type'] === 'url') { |
| 448 | $smarty->assign('FBV_urlValidationErrorMessage', __($value)); |
| 449 | } |
| 450 | break; |
| 451 | case 'placeholder': |
| 452 | $textInputParams .= 'placeholder="' . htmlspecialchars(__($value), ENT_QUOTES) . '" '; |
| 453 | break; |
| 454 | case 'disabled': |
| 455 | case 'readonly': |
| 456 | case 'multilingual': |
| 457 | case 'name': |
| 458 | case 'id': |
| 459 | case 'value': |
| 460 | case 'uniqId': |
| 461 | $smarty->assign('FBV_' . $key, $value); |
| 462 | break; |
| 463 | case 'required': |
| 464 | $smarty->assign('FBV_' . $key, $value); |
| 465 | break; |
| 466 | case 'validation': |
| 467 | $smarty->assign('FBV_' . $key, $value); |
| 468 | // no break |
| 469 | default: |
| 470 | $textInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | $smarty->assign('FBV_textInputParams', $textInputParams); |
| 475 | |
| 476 | return $smarty->fetch('form/textInput.tpl'); |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Form text area. |
| 481 | * parameters: |
| 482 | * - value: string for single language inputs, array (xx_YY => language_value) for multilingual |
| 483 | * - name: string (optional - assigned value based on ID by default) |
| 484 | * - disabled: boolean (default false) |
| 485 | * - multilingual: boolean (default false) |
| 486 | * - rich: false (default), true, or 'extended' |
| 487 | * |
| 488 | * @param array $params |
| 489 | * @param object $smarty |
| 490 | */ |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 555 | |
| 556 | /** |
| 557 | * Hidden input element. |
| 558 | * parameters: value, id, name (optional - assigned value of 'id' by default), disabled (optional), multilingual (optional) |
| 559 | * |
| 560 | * @param array $params |
| 561 | * @param object $smarty |
| 562 | */ |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * Form select control. |
| 589 | * parameters: from [array], selected [array index], defaultLabel (optional), defaultValue (optional), disabled (optional), |
| 590 | * translate (optional), name (optional - value of 'id' by default) |
| 591 | * |
| 592 | * @param array $params |
| 593 | * @param object $smarty |
| 594 | */ |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 639 | |
| 640 | /** |
| 641 | * Form checkbox group control. |
| 642 | * parameters: from [array], selected [array index], defaultLabel (optional), defaultValue (optional), disabled (optional), |
| 643 | * translate (optional), name (optional - value of 'id' by default) |
| 644 | * |
| 645 | * @param array $params |
| 646 | * @param object $smarty |
| 647 | */ |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 679 | |
| 680 | /** |
| 681 | * Checkbox input control. |
| 682 | * parameters: label, disabled (optional), translate (optional), name (optional - value of 'id' by default) |
| 683 | * |
| 684 | * @param array $params |
| 685 | * @param object $smarty |
| 686 | */ |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 712 | |
| 713 | /** |
| 714 | * Radio input control. |
| 715 | * parameters: label, disabled (optional), translate (optional), name (optional - value of 'id' by default) |
| 716 | * |
| 717 | * @param array $params |
| 718 | * @param object $smarty |
| 719 | */ |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 726 | throw new Exception('FBV: radio button cannot have both a content and a label parameter. Label has precedence.'); |
| 727 | } |
| 728 | |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 750 | |
| 751 | /** |
| 752 | * File upload input. |
| 753 | * parameters: submit (optional - name of submit button to include), disabled (optional), name (optional - value of 'id' by default) |
| 754 | * |
| 755 | * @param array $params |
| 756 | * @param object $smarty |
| 757 | */ |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 780 | |
| 781 | /** |
| 782 | * Keyword input. |
| 783 | * parameters: available - all available keywords (for autosuggest); current - user's current keywords |
| 784 | * |
| 785 | * @param array $params |
| 786 | * @param object $smarty |
| 787 | */ |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 823 | |
| 824 | /** |
| 825 | * Reviewing interests input. |
| 826 | * parameters: interests - current users's keywords (array) |
| 827 | * |
| 828 | * @param array $params |
| 829 | * @param object $smarty |
| 830 | */ |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 849 | |
| 850 | /** |
| 851 | * Custom Smarty function for labelling/highlighting of form fields. |
| 852 | * |
| 853 | * @param array $params can contain 'name' (field name/ID), 'required' (required field), 'key' (localization key), 'label' (non-localized label string), 'suppressId' (boolean) |
| 854 | * @param \Smarty $smarty |
| 855 | */ |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 880 | $errors = $form->getErrorsArray(); |
| 881 | $smarty->assign('FBV_subLabelTranslate', false); |
| 882 | $smarty->assign('FBV_label', $errors[$params['name']]); |
| 883 | } else { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 891 | |
| 892 | /** |
| 893 | * Assign the appropriate class name to the element for client-side validation |
| 894 | * |
| 895 | * @param array $params |
| 896 | * return array |
| 897 | */ |
| 898 | public function _addClientSideValidation($params) |
| 899 | { |
| 900 | $form = $this->getForm(); |
| 901 | if (isset($form)) { |
| 902 | // Assign the appropriate class name to the element for client-side validation |
| 903 | $fieldId = $params['id']; |
| 904 | if (isset($form->cssValidation[$fieldId])) { |
| 905 | $params['validation'] = implode(' ', $form->cssValidation[$fieldId]); |
| 906 | } |
| 907 | } |
| 908 | return $params; |
| 909 | } |
| 910 | |
| 911 | /** |
| 912 | * Cycle through layout parameters to add the appropriate classes to the element's parent container |
| 913 | * |
| 914 | * @param array $params |
| 915 | * |
| 916 | * @return string |
| 917 | */ |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 941 | } else { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 945 | |
| 946 | |
| 947 | /** |
| 948 | * Custom Smarty function for labelling/highlighting of form fields. |
| 949 | * |
| 950 | * @param array $params can contain 'name' (field name/ID), 'required' (required field), 'key' (localization key), 'label' (non-localized label string), 'suppressId' (boolean) |
| 951 | * @param \Smarty $smarty |
| 952 | */ |
| 953 | public function smartyFieldLabel($params, $smarty) |
| 954 | { |
| 955 | $returner = ''; |
| 956 | if (isset($params) && !empty($params)) { |
| 957 | if (isset($params['key'])) { |
| 958 | $params['label'] = __($params['key'], $params ?? []); |
| 959 | } |
| 960 | |
| 961 | $form = $this->getForm(); |
| 962 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 963 | $smarty->assign('FBV_class', 'error ' . $params['class']); |
| 964 | } else { |
| 965 | $smarty->assign('FBV_class', $params['class']); |
| 966 | } |
| 967 | |
| 968 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_disabled' => false, 'FBV_name' => null]); |
| 969 | foreach ($params as $key => $value) { |
| 970 | switch ($key) { |
| 971 | case 'label': |
| 972 | case 'required': |
| 973 | case 'suppressId': |
| 974 | case 'disabled': |
| 975 | case 'name': |
| 976 | $smarty->assign('FBV_' . $key, $value); |
| 977 | break; |
| 978 | } |
| 979 | } |
| 980 | |
| 981 | $returner = $smarty->fetch('form/fieldLabel.tpl'); |
| 982 | } |
| 983 | return $returner; |
| 984 | } |
| 985 | } |
| 986 | |
| 987 | if (!PKP_STRICT_MODE) { |
| 988 | class_alias('\PKP\form\FormBuilderVocabulary', '\FormBuilderVocabulary'); |
| 989 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 75 | public function __construct($form = null) |
| 76 | { |
| 77 | $this->_fbvStyles = [ |
| 78 | 'size' => ['SMALL' => 'SMALL', 'MEDIUM' => 'MEDIUM', 'LARGE' => 'LARGE'], |
| 79 | 'height' => ['SHORT' => 'SHORT', 'MEDIUM' => 'MEDIUM', 'TALL' => 'TALL'] |
| 80 | ]; |
| 81 | } |
| 898 | public function _addClientSideValidation($params) |
| 899 | { |
| 900 | $form = $this->getForm(); |
| 901 | if (isset($form)) { |
| 903 | $fieldId = $params['id']; |
| 904 | if (isset($form->cssValidation[$fieldId])) { |
| 905 | $params['validation'] = implode(' ', $form->cssValidation[$fieldId]); |
| 906 | } |
| 907 | } |
| 908 | return $params; |
| 908 | return $params; |
| 909 | } |
| 898 | public function _addClientSideValidation($params) |
| 899 | { |
| 900 | $form = $this->getForm(); |
| 901 | if (isset($form)) { |
| 903 | $fieldId = $params['id']; |
| 904 | if (isset($form->cssValidation[$fieldId])) { |
| 908 | return $params; |
| 909 | } |
| 898 | public function _addClientSideValidation($params) |
| 899 | { |
| 900 | $form = $this->getForm(); |
| 901 | if (isset($form)) { |
| 908 | return $params; |
| 909 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 933 | case 'inline': |
| 933 | case 'inline': |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 933 | case 'inline': |
| 933 | case 'inline': |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 936 | } break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 936 | } break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 936 | } break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 936 | } break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 932 | break; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 940 | return implode(' ', $classes); |
| 918 | public function _getLayoutInfo($params) |
| 919 | { |
| 920 | $classes = []; |
| 921 | foreach ($params as $key => $value) { |
| 921 | foreach ($params as $key => $value) { |
| 922 | switch ($key) { |
| 923 | case 'size': |
| 924 | switch ($value) { |
| 925 | case 'SMALL': $classes[] = 'pkp_helpers_quarter'; |
| 926 | break; |
| 927 | case 'MEDIUM': $classes[] = 'pkp_helpers_half'; |
| 928 | break; |
| 929 | case 'LARGE': $classes[] = 'pkp_helpers_threeQuarter'; |
| 930 | break; |
| 931 | } |
| 932 | break; |
| 933 | case 'inline': |
| 934 | if ($value) { |
| 935 | $classes[] = 'inline'; |
| 936 | } break; |
| 937 | } |
| 938 | } |
| 939 | if (!empty($classes)) { |
| 942 | return null; |
| 943 | } |
| 944 | } |
| 379 | public function _smartyFBVAutocompleteInput($params, $smarty) |
| 380 | { |
| 381 | assert(isset($params['autocompleteUrl']) && isset($params['id'])); |
| 382 | |
| 383 | // This id will be used for the hidden input that should be read by the Form. |
| 384 | $autocompleteId = $params['id']; |
| 385 | |
| 386 | // We then override the id parameter to differentiate it from the hidden element |
| 387 | // and make sure that the text input is not read by the Form class. |
| 388 | $params['id'] = $autocompleteId . '_input'; |
| 389 | |
| 390 | // We set this now, so that we unset the param for the text input. |
| 391 | $smarty->assign([ |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 393 | 'FBV_autocompleteValue' => $params['autocompleteValue'] ?? null, |
| 394 | 'FBV_disableSync' => isset($params['disableSync']) ? true : null, |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 393 | 'FBV_autocompleteValue' => $params['autocompleteValue'] ?? null, |
| 394 | 'FBV_disableSync' => isset($params['disableSync']) ? true : null, |
| 395 | ]); |
| 396 | |
| 397 | unset($params['autocompleteUrl'], $params['autocompleteValue']); |
| 398 | |
| 399 | $smarty->assign([ |
| 400 | 'FBV_textInput' => $this->_smartyFBVTextInput($params, $smarty), |
| 401 | 'FBV_id' => $autocompleteId, |
| 402 | ]); |
| 403 | |
| 404 | return $smarty->fetch('form/autocompleteInput.tpl'); |
| 405 | } |
| 379 | public function _smartyFBVAutocompleteInput($params, $smarty) |
| 380 | { |
| 381 | assert(isset($params['autocompleteUrl']) && isset($params['id'])); |
| 382 | |
| 383 | // This id will be used for the hidden input that should be read by the Form. |
| 384 | $autocompleteId = $params['id']; |
| 385 | |
| 386 | // We then override the id parameter to differentiate it from the hidden element |
| 387 | // and make sure that the text input is not read by the Form class. |
| 388 | $params['id'] = $autocompleteId . '_input'; |
| 389 | |
| 390 | // We set this now, so that we unset the param for the text input. |
| 391 | $smarty->assign([ |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 393 | 'FBV_autocompleteValue' => $params['autocompleteValue'] ?? null, |
| 394 | 'FBV_disableSync' => isset($params['disableSync']) ? true : null, |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 392 | 'FBV_autocompleteUrl' => $params['autocompleteUrl'], |
| 393 | 'FBV_autocompleteValue' => $params['autocompleteValue'] ?? null, |
| 394 | 'FBV_disableSync' => isset($params['disableSync']) ? true : null, |
| 395 | ]); |
| 396 | |
| 397 | unset($params['autocompleteUrl'], $params['autocompleteValue']); |
| 398 | |
| 399 | $smarty->assign([ |
| 400 | 'FBV_textInput' => $this->_smartyFBVTextInput($params, $smarty), |
| 401 | 'FBV_id' => $autocompleteId, |
| 402 | ]); |
| 403 | |
| 404 | return $smarty->fetch('form/autocompleteInput.tpl'); |
| 405 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 360 | case 'disabled': |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 358 | case 'label': |
| 359 | case 'type': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 358 | case 'label': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 357 | break; |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 347 | public function _smartyFBVButton($params, $smarty) |
| 348 | { |
| 349 | // the type of this button. the default value is 'button' (but could be 'submit') |
| 350 | |
| 351 | $buttonParams = ''; |
| 352 | $smarty->assign(['FBV_label' => null, 'FBV_disabled' => false]); |
| 353 | foreach ($params as $key => $value) { |
| 353 | foreach ($params as $key => $value) { |
| 354 | switch ($key) { |
| 355 | case 'inline': |
| 356 | case 'translate': |
| 357 | break; |
| 358 | case 'label': |
| 359 | case 'type': |
| 360 | case 'disabled': |
| 361 | $smarty->assign('FBV_' . $key, $value); |
| 362 | break; |
| 363 | default: $buttonParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | $smarty->assign('FBV_buttonParams', $buttonParams); |
| 368 | |
| 369 | return $smarty->fetch('form/button.tpl'); |
| 370 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 701 | case 'disabled': |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 696 | case 'type': break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 701 | case 'disabled': |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 696 | case 'type': break; |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 687 | public function _smartyFBVCheckbox($params, $smarty) |
| 688 | { |
| 689 | $params['name'] = $params['name'] ?? $params['id']; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 690 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 691 | |
| 692 | $checkboxParams = ''; |
| 693 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 694 | foreach ($params as $key => $value) { |
| 694 | foreach ($params as $key => $value) { |
| 695 | switch ($key) { |
| 696 | case 'type': break; |
| 697 | case 'id': |
| 698 | case 'label': |
| 699 | case 'translate': |
| 700 | case 'checked': |
| 701 | case 'disabled': |
| 702 | $smarty->assign('FBV_' . $key, $value); |
| 703 | break; |
| 704 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 709 | |
| 710 | return $smarty->fetch('form/checkbox.tpl'); |
| 711 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 669 | case 'inline': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 668 | case 'type': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 669 | case 'inline': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 668 | case 'type': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 669 | case 'inline': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 668 | case 'type': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 670 | case 'subLabelTranslate': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 669 | case 'inline': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 668 | case 'type': break; |
| 668 | case 'type': break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 648 | public function _smartyFBVCheckboxGroup($params, $smarty) |
| 649 | { |
| 650 | $params['name'] = $params['name'] ?? $params['id']; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 651 | $params['translate'] = isset($params['translate']) ? (bool)$params['translate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 652 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 653 | $checkboxParams = ''; |
| 654 | |
| 655 | $smarty->assign(['FBV_from' => null, 'FBV_selected' => false, 'FBV_label_content' => null, 'FBV_defaultValue' => null, 'FBV_defaultLabel' => null]); |
| 656 | foreach ($params as $key => $value) { |
| 656 | foreach ($params as $key => $value) { |
| 657 | switch ($key) { |
| 658 | case 'from': |
| 659 | case 'selected': |
| 660 | case 'defaultValue': |
| 661 | case 'defaultLabel': |
| 662 | case 'translate': |
| 663 | case 'name': |
| 664 | case 'validation': |
| 665 | case 'disabled': |
| 666 | $smarty->assign('FBV_' . $key, $value); |
| 667 | break; |
| 668 | case 'type': break; |
| 669 | case 'inline': break; |
| 670 | case 'subLabelTranslate': break; |
| 671 | default: $checkboxParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | $smarty->assign('FBV_checkboxParams', $checkboxParams); |
| 676 | |
| 677 | return $smarty->fetch('form/checkboxGroup.tpl'); |
| 678 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 766 | case 'type': break; |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 758 | public function _smartyFBVFileInput($params, $smarty) |
| 759 | { |
| 760 | $params['name'] = $params['name'] ?? $params['id']; |
| 761 | $params['translate'] = $params['translate'] ?? true; |
| 762 | |
| 763 | $smarty->assign(['FBV_id' => null, 'FBV_label_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false, 'FBV_submit' => null]); |
| 764 | foreach ($params as $key => $value) { |
| 764 | foreach ($params as $key => $value) { |
| 765 | switch ($key) { |
| 766 | case 'type': break; |
| 767 | case 'id': |
| 768 | case 'submit': |
| 769 | case 'name': |
| 770 | case 'disabled': |
| 771 | $smarty->assign('FBV_' . $key, $value); |
| 772 | break; |
| 773 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 774 | break; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | return $smarty->fetch('form/fileInput.tpl'); |
| 779 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 577 | case 'type': break; |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 577 | case 'type': break; |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 576 | case 'label': break; |
| 576 | case 'label': break; |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 563 | public function _smartyFBVHiddenInput($params, $smarty) |
| 564 | { |
| 565 | $params['name'] = $params['name'] ?? $params['id']; |
| 566 | |
| 567 | $hiddenInputParams = ''; |
| 568 | $smarty->assign(['FBV_id' => null, 'FBV_value' => null]); |
| 569 | foreach ($params as $key => $value) { |
| 569 | foreach ($params as $key => $value) { |
| 570 | switch ($key) { |
| 571 | case 'name': |
| 572 | case 'id': |
| 573 | case 'value': |
| 574 | $smarty->assign('FBV_' . $key, $value); |
| 575 | break; |
| 576 | case 'label': break; |
| 577 | case 'type': break; |
| 578 | default: $hiddenInputParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | $smarty->assign('FBV_hiddenInputParams', $hiddenInputParams); |
| 583 | |
| 584 | return $smarty->fetch('form/hiddenInput.tpl'); |
| 585 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 837 | case 'type': break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 837 | case 'type': break; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 831 | public function _smartyFBVInterestsInput($params, $smarty) |
| 832 | { |
| 833 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_interests' => null]); |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 834 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 835 | foreach ($params as $key => $value) { |
| 835 | foreach ($params as $key => $value) { |
| 836 | switch ($key) { |
| 837 | case 'type': break; |
| 838 | case 'id': |
| 839 | case 'interests': |
| 840 | $smarty->assign('FBV_' . $key, $value); |
| 841 | break; |
| 842 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 843 | break; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | return $smarty->fetch('form/interestsInput.tpl'); |
| 848 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 806 | case 'available': $smarty->assign( |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 806 | case 'available': $smarty->assign( |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 806 | case 'available': $smarty->assign( |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 806 | case 'available': $smarty->assign( |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 797 | case 'type': break; |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 788 | public function _smartyFBVKeywordInput($params, $smarty) |
| 789 | { |
| 790 | $params['uniqId'] = uniqid(); |
| 791 | |
| 792 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_label_content' => null, 'FBV_currentKeywords' => null, 'FBV_multilingual' => false, 'FBV_sourceUrl' => null, 'FBV_disabled' => false]); |
| 793 | $emptyFormLocaleMap = array_fill_keys(array_keys($smarty->getTemplateVars('formLocales')), []); |
| 794 | $smarty->assign('FBV_availableKeywords', $emptyFormLocaleMap); |
| 795 | foreach ($params as $key => $value) { |
| 795 | foreach ($params as $key => $value) { |
| 796 | switch ($key) { |
| 797 | case 'type': break; |
| 798 | case 'id': |
| 799 | case 'uniqId': |
| 800 | case 'disabled': |
| 801 | case 'multilingual': |
| 802 | $smarty->assign('FBV_' . $key, $value); |
| 803 | break; |
| 804 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 805 | break; |
| 806 | case 'available': $smarty->assign( |
| 807 | 'FBV_availableKeywords', |
| 808 | $thing = array_merge( |
| 809 | $emptyFormLocaleMap, |
| 810 | $value |
| 811 | ) |
| 812 | ); |
| 813 | break; |
| 814 | case 'current': $smarty->assign('FBV_currentKeywords', $value); |
| 815 | break; |
| 816 | case 'sourceUrl': $smarty->assign('FBV_sourceUrl', $value); |
| 817 | break; |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | return $smarty->fetch('form/keywordInput.tpl'); |
| 822 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 726 | throw new Exception('FBV: radio button cannot have both a content and a label parameter. Label has precedence.'); |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 739 | case 'content': |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 733 | case 'type': break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 726 | throw new Exception('FBV: radio button cannot have both a content and a label parameter. Label has precedence.'); |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 739 | case 'content': |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 733 | case 'type': break; |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 720 | public function _smartyFBVRadioButton($params, $smarty) |
| 721 | { |
| 722 | $params['name'] = $params['name'] ?? $params['id']; |
| 723 | $params['translate'] = $params['translate'] ?? true; |
| 724 | |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 725 | if (isset($params['label']) && isset($params['content'])) { |
| 729 | $radioParams = ''; |
| 730 | $smarty->assign(['FBV_id' => null, 'FBV_label' => null, 'FBV_content' => null, 'FBV_checked' => false, 'FBV_disabled' => false]); |
| 731 | foreach ($params as $key => $value) { |
| 731 | foreach ($params as $key => $value) { |
| 732 | switch ($key) { |
| 733 | case 'type': break; |
| 734 | case 'id': |
| 735 | case 'label': |
| 736 | case 'translate': |
| 737 | case 'checked': |
| 738 | case 'disabled': |
| 739 | case 'content': |
| 740 | $smarty->assign('FBV_' . $key, $value); |
| 741 | break; |
| 742 | default: $radioParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value, ENT_QUOTES) . '" '; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | $smarty->assign('FBV_radioParams', $radioParams); |
| 747 | |
| 748 | return $smarty->fetch('form/radioButton.tpl'); |
| 749 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 628 | case 'subLabelTranslate': break; |
| 628 | case 'subLabelTranslate': break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 627 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 627 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 628 | case 'subLabelTranslate': break; |
| 628 | case 'subLabelTranslate': break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 625 | case 'inline': |
| 627 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 624 | case 'type': |
| 627 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 595 | public function _smartyFBVSelect($params, $smarty) |
| 596 | { |
| 597 | $params['name'] = $params['name'] ?? $params['id']; |
| 598 | $params['translate'] = $params['translate'] ?? true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 599 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 600 | |
| 601 | $selectParams = ''; |
| 602 | |
| 603 | $smarty->assign([ |
| 604 | 'FBV_label' => null, |
| 605 | 'FBV_from' => null, |
| 606 | 'FBV_selected' => null, |
| 607 | 'FBV_label_content' => null, |
| 608 | 'FBV_defaultValue' => null, |
| 609 | 'FBV_defaultLabel' => null, |
| 610 | 'FBV_required' => false, |
| 611 | 'FBV_disabled' => false, |
| 612 | ]); |
| 613 | foreach ($params as $key => $value) { |
| 613 | foreach ($params as $key => $value) { |
| 614 | switch ($key) { |
| 615 | case 'from': |
| 616 | case 'selected': |
| 617 | case 'translate': |
| 618 | case 'defaultValue': |
| 619 | case 'defaultLabel': |
| 620 | case 'disabled': |
| 621 | case 'required': |
| 622 | $smarty->assign('FBV_' . $key, $value); |
| 623 | break; |
| 624 | case 'type': |
| 625 | case 'inline': |
| 626 | case 'size': |
| 627 | break; |
| 628 | case 'subLabelTranslate': break; |
| 629 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 630 | break; |
| 631 | default: $selectParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars($value ?? '', ENT_QUOTES) . '" '; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | $smarty->assign('FBV_selectParams', $selectParams); |
| 636 | |
| 637 | return $smarty->fetch('form/select.tpl'); |
| 638 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 871 | case 'required': |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 871 | case 'required': |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 871 | case 'required': |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 871 | case 'required': |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 867 | case 'label': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 879 | $smarty->assign('FBV_error', true); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 856 | public function _smartyFBVSubLabel($params, $smarty) |
| 857 | { |
| 858 | assert(isset($params['label'])); |
| 859 | |
| 860 | $returner = ''; |
| 861 | |
| 862 | $smarty->assign(['FBV_suppressId' => null, 'FBV_label' => null, 'FBV_required' => false, 'FBV_uniqId' => null, 'FBV_multilingual' => false]); |
| 863 | foreach ($params as $key => $value) { |
| 863 | foreach ($params as $key => $value) { |
| 864 | switch ($key) { |
| 865 | case 'subLabelTranslate': $smarty->assign('FBV_subLabelTranslate', $value); |
| 866 | break; |
| 867 | case 'label': |
| 868 | case 'uniqId': |
| 869 | case 'multilingual': |
| 870 | case 'suppressId': |
| 871 | case 'required': |
| 872 | $smarty->assign('FBV_' . $key, $value); |
| 873 | break; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | $form = $this->getForm(); |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 878 | if (isset($form) && isset($form->errorFields[$params['name']])) { |
| 884 | $smarty->assign('FBV_error', false); |
| 885 | } |
| 886 | |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 887 | $returner = $smarty->fetch('form/subLabel.tpl'); |
| 888 | |
| 889 | return $returner; |
| 890 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 545 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 545 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 545 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 532 | case 'subLabelTranslate': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 531 | case 'inline': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 530 | case 'size': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 529 | case 'type': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 545 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 545 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 545 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 532 | case 'subLabelTranslate': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 531 | case 'inline': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 530 | case 'size': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 529 | case 'type': break; |
| 529 | case 'type': break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 491 | public function _smartyFBVTextArea($params, $smarty) |
| 492 | { |
| 493 | $params['name'] = $params['name'] ?? $params['id']; |
| 494 | $params['rows'] = $params['rows'] ?? 10; |
| 495 | $params['cols'] = $params['cols'] ?? 80; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 496 | $params['subLabelTranslate'] = isset($params['subLabelTranslate']) ? (bool) $params['subLabelTranslate'] : true; |
| 497 | $params['uniqId'] = uniqid(); |
| 498 | |
| 499 | $textAreaParams = ''; |
| 500 | $smarty->assign([ |
| 501 | 'FBV_label_content' => null, |
| 502 | 'FBV_disabled' => false, |
| 503 | 'FBV_readonly' => false, |
| 504 | 'FBV_multilingual' => false, |
| 505 | 'FBV_value' => null, |
| 506 | 'FBV_height' => null, |
| 507 | 'FBV_rich' => false, |
| 508 | 'FBV_variables' => null, |
| 509 | 'FBV_variablesType' => null, |
| 510 | ]); |
| 511 | foreach ($params as $key => $value) { |
| 511 | foreach ($params as $key => $value) { |
| 512 | switch ($key) { |
| 513 | case 'name': |
| 514 | case 'value': |
| 515 | case 'rows': |
| 516 | case 'cols': |
| 517 | case 'rich': |
| 518 | case 'disabled': |
| 519 | case 'readonly': |
| 520 | case 'multilingual': |
| 521 | case 'uniqId': |
| 522 | case 'variablesType': |
| 523 | case 'variables': |
| 524 | case 'required': |
| 525 | $smarty->assign('FBV_' . $key, $value); |
| 526 | break; |
| 527 | case 'label': $smarty->assign('FBV_label_content', $this->_smartyFBVSubLabel($params, $smarty)); |
| 528 | break; |
| 529 | case 'type': break; |
| 530 | case 'size': break; |
| 531 | case 'inline': break; |
| 532 | case 'subLabelTranslate': break; |
| 533 | case 'height': |
| 534 | $styles = $this->getStyles(); |
| 535 | switch ($value) { |
| 536 | case $styles['height']['SHORT']: $smarty->assign('FBV_height', 'short'); |
| 537 | break; |
| 538 | case $styles['height']['MEDIUM']: $smarty->assign('FBV_height', 'medium'); |
| 539 | break; |
| 540 | case $styles['height']['TALL']: $smarty->assign('FBV_height', 'tall'); |
| 541 | break; |
| 542 | default: |
| 543 | throw new Exception('FBV: invalid height specified for textarea.'); |
| 544 | } |
| 545 | break; |
| 546 | case 'id': break; // if we don't do this, the textarea ends up with two id attributes because FBV_id is also set. |
| 547 | default: $textAreaParams .= htmlspecialchars($key, ENT_QUOTES) . '="' . htmlspecialchars((string) $value, ENT_QUOTES) . '" '; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | $smarty->assign('FBV_textAreaParams', $textAreaParams); |
| 552 | |
| 553 | return $smarty->fetch('form/textarea.tpl'); |
| 554 | } |
| 107 | return $this->_form; |
| 108 | } |
| 117 | return $this->_fbvStyles; |
| 118 | } |
| 92 | public function setForm($form) |
| 93 | { |
| 94 | if ($form) { |
| 95 | assert($form instanceof \PKP\form\Form); |
| 96 | } |
| 97 | $this->_form = $form; |
| 97 | $this->_form = $form; |
| 98 | } |
| 92 | public function setForm($form) |
| 93 | { |
| 94 | if ($form) { |
| 97 | $this->_form = $form; |
| 98 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 256 | throw new Exception('FBV: Element type not set'); |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 259 | throw new Exception('FBV: Element ID not set'); |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 318 | case 'text': |
| 319 | case 'url': |
| 322 | case 'select': |
| 325 | case 'textarea': |
| 325 | case 'textarea': |
| 328 | default: assert(false); |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 318 | case 'text': |
| 319 | case 'url': |
| 322 | case 'select': |
| 325 | case 'textarea': |
| 326 | $content = $this->_smartyFBVTextArea($params, $smarty); |
| 327 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 318 | case 'text': |
| 319 | case 'url': |
| 322 | case 'select': |
| 323 | $content = $this->_smartyFBVSelect($params, $smarty); |
| 324 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 318 | case 'text': |
| 319 | case 'url': |
| 320 | $content = $this->_smartyFBVTextInput($params, $smarty); |
| 321 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 318 | case 'text': |
| 320 | $content = $this->_smartyFBVTextInput($params, $smarty); |
| 321 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 317 | case 'tel': |
| 320 | $content = $this->_smartyFBVTextInput($params, $smarty); |
| 321 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 316 | case 'search': |
| 320 | $content = $this->_smartyFBVTextInput($params, $smarty); |
| 321 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 315 | case 'email': |
| 320 | $content = $this->_smartyFBVTextInput($params, $smarty); |
| 321 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 311 | case 'radio': |
| 312 | $content = $this->_smartyFBVRadioButton($params, $smarty); |
| 313 | unset($params['label']); |
| 314 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 308 | case 'interests': |
| 309 | $content = $this->_smartyFBVInterestsInput($params, $smarty); |
| 310 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 305 | case 'keyword': |
| 306 | $content = $this->_smartyFBVKeywordInput($params, $smarty); |
| 307 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 302 | case 'hidden': |
| 303 | $content = $this->_smartyFBVHiddenInput($params, $smarty); |
| 304 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 299 | case 'file': |
| 300 | $content = $this->_smartyFBVFileInput($params, $smarty); |
| 301 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 295 | case 'checkboxgroup': |
| 296 | $content = $this->_smartyFBVCheckboxGroup($params, $smarty); |
| 297 | unset($params['label']); |
| 298 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 291 | case 'checkbox': |
| 292 | $content = $this->_smartyFBVCheckbox($params, $smarty); |
| 293 | unset($params['label']); |
| 294 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 288 | case 'submit': |
| 289 | $content = $this->_smartyFBVButton($params, $smarty); |
| 290 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 287 | case 'button': |
| 289 | $content = $this->_smartyFBVButton($params, $smarty); |
| 290 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 253 | public function smartyFBVElement($params, $smarty, $content = null) |
| 254 | { |
| 255 | if (!isset($params['type'])) { |
| 258 | if (!isset($params['id'])) { |
| 263 | $smarty->assign([ |
| 264 | 'FBV_id' => $params['id'], |
| 265 | 'FBV_class' => $params['class'] ?? null, |
| 266 | 'FBV_required' => $params['required'] ?? false, |
| 267 | 'FBV_layoutInfo' => $this->_getLayoutInfo($params), |
| 268 | 'FBV_label' => $params['label'] ?? null, |
| 269 | 'FBV_for' => $params['for'] ?? null, |
| 270 | 'FBV_tabIndex' => $params['tabIndex'] ?? null, |
| 271 | 'FBV_translate' => $params['translate'] ?? true, |
| 272 | 'FBV_keepLabelHtml' => $params['keepLabelHtml'] ?? false, |
| 273 | ]); |
| 274 | |
| 275 | // Unset these parameters so they don't get assigned twice |
| 276 | unset($params['class']); |
| 277 | |
| 278 | // Find fields that the form class has marked as required and add the 'required' class to them |
| 279 | $params = $this->_addClientSideValidation($params); |
| 280 | $smarty->assign('FBV_validation', $params['validation'] ?? null); |
| 281 | |
| 282 | // Set up the specific field's template |
| 283 | switch (strtolower($params['type'])) { |
| 284 | case 'autocomplete': |
| 285 | $content = $this->_smartyFBVAutocompleteInput($params, $smarty); |
| 286 | break; |
| 328 | default: assert(false); |
| 329 | } |
| 330 | |
| 331 | unset($params['type']); |
| 332 | |
| 333 | return $content; |
| 334 | } |
| 132 | public function smartyFBVFormArea($params, $content, $smarty, &$repeat) |
| 133 | { |
| 134 | assert(isset($params['id'])); |
| 135 | if (!$repeat) { |
| 136 | $smarty->assign([ |
| 137 | 'FBV_class' => $params['class'] ?? null, |
| 138 | 'FBV_id' => $params['id'], |
| 139 | 'FBV_content' => $content ?? null, |
| 140 | 'FBV_translate' => $params['translate'] ?? true, |
| 141 | 'FBV_title' => $params['title'] ?? null, |
| 142 | ]); |
| 143 | return $smarty->fetch('form/formArea.tpl'); |
| 132 | public function smartyFBVFormArea($params, $content, $smarty, &$repeat) |
| 133 | { |
| 134 | assert(isset($params['id'])); |
| 135 | if (!$repeat) { |
| 145 | return ''; |
| 146 | } |
| 229 | public function smartyFBVFormButtons($params, $smarty) |
| 230 | { |
| 231 | $smarty->assign([ |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 237 | 'FBV_cancelAction' => $params['cancelAction'] ?? null, |
| 238 | 'FBV_cancelUrl' => $params['cancelUrl'] ?? null, |
| 239 | 'FBV_cancelUrlTarget' => $params['cancelUrlTarget'] ?? '', |
| 240 | 'FBV_translate' => $params['translate'] ?? true, |
| 241 | 'FBV_saveText' => $params['saveText'] ?? null, |
| 242 | ]); |
| 243 | return $smarty->fetch('form/formButtons.tpl'); |
| 244 | } |
| 229 | public function smartyFBVFormButtons($params, $smarty) |
| 230 | { |
| 231 | $smarty->assign([ |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 237 | 'FBV_cancelAction' => $params['cancelAction'] ?? null, |
| 238 | 'FBV_cancelUrl' => $params['cancelUrl'] ?? null, |
| 239 | 'FBV_cancelUrlTarget' => $params['cancelUrlTarget'] ?? '', |
| 240 | 'FBV_translate' => $params['translate'] ?? true, |
| 241 | 'FBV_saveText' => $params['saveText'] ?? null, |
| 242 | ]); |
| 243 | return $smarty->fetch('form/formButtons.tpl'); |
| 244 | } |
| 229 | public function smartyFBVFormButtons($params, $smarty) |
| 230 | { |
| 231 | $smarty->assign([ |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 237 | 'FBV_cancelAction' => $params['cancelAction'] ?? null, |
| 238 | 'FBV_cancelUrl' => $params['cancelUrl'] ?? null, |
| 239 | 'FBV_cancelUrlTarget' => $params['cancelUrlTarget'] ?? '', |
| 240 | 'FBV_translate' => $params['translate'] ?? true, |
| 241 | 'FBV_saveText' => $params['saveText'] ?? null, |
| 242 | ]); |
| 243 | return $smarty->fetch('form/formButtons.tpl'); |
| 244 | } |
| 229 | public function smartyFBVFormButtons($params, $smarty) |
| 230 | { |
| 231 | $smarty->assign([ |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 232 | 'FBV_submitText' => $params['submitText'] ?? 'common.ok', |
| 233 | 'FBV_submitDisabled' => isset($params['submitDisabled']) ? (bool)$params['submitDisabled'] : false, |
| 234 | 'FBV_confirmSubmit' => $params['confirmSubmit'] ?? null, |
| 235 | 'FBV_cancelText' => $params['cancelText'] ?? 'common.cancel', |
| 236 | 'FBV_hideCancel' => isset($params['hideCancel']) ? (bool)$params['hideCancel'] : false, |
| 237 | 'FBV_cancelAction' => $params['cancelAction'] ?? null, |
| 238 | 'FBV_cancelUrl' => $params['cancelUrl'] ?? null, |
| 239 | 'FBV_cancelUrlTarget' => $params['cancelUrlTarget'] ?? '', |
| 240 | 'FBV_translate' => $params['translate'] ?? true, |
| 241 | 'FBV_saveText' => $params['saveText'] ?? null, |
| 242 | ]); |
| 243 | return $smarty->fetch('form/formButtons.tpl'); |
| 244 | } |